<?php

class ControllerBackOffice extends ControllerBase {
    protected function SetMenu(){
        if(!$this->IsForbidden()){
            $key = "menu";
            $this->Smarty->assign($key, MenuBackOffice::AllItems());
            $this->Smarty->assign($key."_selected_ctrl", $this->ControllerName);
            $this->Smarty->assign($key."_selected_action", $this->ActionName);
            parent::Navigation($this->Fetch("ui_menu.tpl"));
        }
    }
    protected function SetTinyMceEditor(){
        if(!$this->IsForbidden()){
            parent::Script($this->Fetch("ui_tinymce.tpl"));
        }
    }

}
